<?php
declare (strict_types = 1);

namespace app\admin\model\seed;

use app\admin\model\AdminModel;
use thinkless\common\BaseSeed;
use util\PasswordHash;

/**
 * 
 */
class AdminSeed extends BaseSeed {

    public function getClass() {
        return AdminModel::class;
    }

    public function seed($theme) {
        return [
            [
                'id' => 1,
                'username' => 'admin',
                'is_super' => 1,
                'avatar_url' => '/image/avatar.jpg',
                'status' => AdminModel::STATUS_NORMAL,
                'mobile' => '13800138000',
                'salt' => 'admin',
                'password' => PasswordHash::encrypt_password('123456', 'admin'),
            ]
        ];
    }
}